package com.agrm.api.client;

import com.agrm.model.category.pojo.Category;
import com.agrm.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("category-service")
public interface CategoryClient {

    /**
     * 根据id查询分类
     *
     * @param id id
     */
    @GetMapping("api/v1/category/get")
    ResponseResult<Category> getCategoryById(@RequestParam("id") Integer id);

}
